package cz.cvut.fit.web.nakupniSeznam.ws.conv;

import java.net.URI;

import org.apache.http.MethodNotSupportedException;

public abstract class AbstractConverter {
	// ==================== STATIC ATTRIBUTES ==================

	// ==================== INSTANCE ATTRIBUTES ================
	protected boolean expand;
	
	protected URI uri;

	// ==================== STATIC METHODS =====================

	// ==================== CONSTRUCTORS =======================

	// ==================== OVERRIDEN METHODS ==================

	// ==================== INSTANCE METHODS ===================
	protected abstract URI resolveURI(URI uri) throws MethodNotSupportedException;

	// ==================== PRIVATE METHODS ====================

	// ==================== GETTERS/SETTERS ====================
	/**
	 * @return the expand
	 */
	public Boolean getExpand() {
		return expand;
	}

	/**
	 * @param expand the expand to set
	 */
	public void setExpand(Boolean expand) {
		this.expand = expand;
	}

	/**
	 * @return the uri
	 */
	public URI getUri() {
		return this.expand? uri : null;
	}
	
	
	

	// ==================== INNER CLASSES ======================

}
